﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Company_company_con_top : System.Web.UI.UserControl
{
    public string WebUrl, uID, lb_company;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
           title();
        }
    }
    public void title()
    {

        if (Request.QueryString["p_UserID"] != null)
        {
            int uid = int.Parse(Request.QueryString["p_UserID"]);
            DataTable dt = Class1.ExecSel("select * from wj_User where  wj_ID=" + uid + "");
            if (dt.Rows[0]["wj_LogoImg"].ToString() != "" && dt.Rows[0]["wj_LogoImg"].ToString() != null)
            {
                lb_logo.Text = "<img src=../" + dt.Rows[0]["wj_LogoImg"].ToString() + " border=0 width=83 height=73/>";
            }
            lb_company = dt.Rows[0]["wj_CompanyName"].ToString();
            uID = dt.Rows[0]["wj_ID"].ToString();
            WebUrl = Convert.ToString(dt.Rows[0]["wj_WebUrl"].ToString());
        }
    }
}
